﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

namespace Models
{
    public class ItemDataDic
    {

        public static Dictionary<string, PersonZhuangBeiItem> person_zhuangbeiDic = new Dictionary<string, PersonZhuangBeiItem>();

        public static PersonZhuangBeiItem GetPersonZhuangBei(string key)
        {
            if ( person_zhuangbeiDic.ContainsKey(key) )
            {
                return person_zhuangbeiDic[key];
            }
            else
            {
                return null;
            }
        }

        public ItemDataDic()
        {
            PersonZhuangBeiItem z1 = new PersonZhuangBeiItem("弹弓","弹弓子弹", 2, 0, PersonZhuangBeiType.Wuqi, "弹弓描述", 10, 5);
            






        }


        public void AddPersonZhuangBeiDic( string key , PersonZhuangBeiItem  item)
        {
            person_zhuangbeiDic.Add(key, item);
        }

        


    }
}
